#pragma once
#include "Texture.hpp"
#import <OpenGLES/ES1/gl.h>

namespace Typhoon {
	class RenderTarget : public Texture
	{
	public:
		RenderTarget();
		~RenderTarget();

		void Initialize(int size);

		bool IsValid();

		void Begin();
		void End();

		void Free();

	private:
		GLuint frameBuffer;

		bool isValid;
	};
}
